package net.swa.dewei.service.impl;

import net.swa.dewei.beans.entity.CheXing;
import net.swa.dewei.service.CheXingService;
import net.swa.system.dao.HibernateDaoSupport;

import org.hibernate.Query;
import org.springframework.stereotype.Service;


@Service("cheXingService")
public class CheXingServiceImpl extends HibernateDaoSupport implements CheXingService
{
	public void add(CheXing m)
	{
		// TODO
	}

	public void update(CheXing m)
	{
		// TODO
	}

	public void delete(final Long[] ids)
	{
		Query query = getCurrentSession().createQuery("delete from CheXing  where id=:id");
		for (int i = 0; i < ids.length; i++)
		{
			if (null != ids[i])
			{
				query.setLong("id", ids[i]);
				query.executeUpdate();
			}
		}
	}

}